{*
Update logs
10/01/2010      immanuel192     Remove fancybox 
								Remove morenew because we no need it
Oct 14, 2010    immanuel192     Change from automatic summary of body to summary field

*}
<div class="articlemodule" >
	{include file="`$smarty.const.BASE`modules/common/views/_permission_icons.tpl"}
	{if $enable_rss == true}<a class="rsslink" href="{rsslink}">{$_TR.alt_rssfeed}</a>{/if}
	{if $moduletitle != ""}<h1>{$moduletitle}</h1><br>{/if}
	{foreach key="key" name="object" from=$news item=newsitem}
	{if $newsitem->isRss != true}
	{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
	<div class="itemactions">
		{if $permissions.administrate == true || $newsitem->permissions.administrate == true}
		<a href="{link action=userperms int=$newsitem->id _common=1}"><img src="{$smarty.const.ICON_RELATIVE}userperms.png" title="{$_TR.alt_userperm_one}" alt="{$_TR.alt_userperm_one}" {$smarty.const.XHTML_CLOSING}></a>&nbsp;
		<a href="{link action=groupperms int=$newsitem->id _common=1}"><img src="{$smarty.const.ICON_RELATIVE}groupperms.png" title="{$_TR.alt_groupperm_one}" alt="{$_TR.alt_groupperm_one}" {$smarty.const.XHTML_CLOSING}></a>
		{/if}
		{if $permissions.edit_item == true || $newsitem->permissions.edit_item == true}
		{if $newsitem->approved == 2} {* in ap *}
		<img src="{$smarty.const.ICON_RELATIVE}edit.disabled.png" title="{$_TR.alt_edit_disabled}" alt="{$_TR.alt_edit_disabled}" {$smarty.const.XHTML_CLOSING}>
		{else}
		<a href="{link action=edit id=$newsitem->id}"><img src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" {$smarty.const.XHTML_CLOSING}></a>
		{/if}
		{/if}
		{if $permissions.delete_item == true || $newsitem->permissions.delete_item == true}
		{if $newsitem->approved == 2} {* in ap *}
		<img src="{$smarty.const.ICON_RELATIVE}delete.disabled.png" title="{$_TR.alt_delete_disabled}" alt="{$_TR.alt_delete_disabled}" {$smarty.const.XHTML_CLOSING}>
		{else}
		<a onclick="return confirm('{$_TR.delete_confirm}');" href="{link action=delete id=$newsitem->id}"><img src="{$smarty.const.ICON_RELATIVE}delete.png" title="{$_TR.alt_delete}" alt="{$_TR.alt_delete}" {$smarty.const.XHTML_CLOSING}></a>
		{/if}
		{/if}
		{if $permissions.manage_approval == 1}
		<a class="managerevisions" href="{link module=workflow datatype=newsitem m=newsmodule s=$__loc->src action=revisions_view id=$newsitem->id}" title="{$_TR.alt_revisions}">
			<img src="{$smarty.const.ICON_RELATIVE}revisions.png" alt="{$_TR.revisions}" {$smarty.const.XHTML_CLOSING}>
		</a>
		{/if}
	</div>
	{/permissions}
	{/if}
	<!-- news item list -->
	<div class="contentpaneopen">
		{if $newsitem->title != ""}
		<a id="news_{$newsitem->id}" class="article_title_link" href="u" class="contentpagetitle">{$newsitem->title}</a>
		{/if}
		<div class="article-tools clearfix">
			<div class="article-meta">
				<span class="createdate">{$newsitem->datetime}</span>
				<span class="createby">{$newsitem->poster_name}</span>
			</div>
			<div class="buttonheading">
				<span>
				<a target=_blank href="{link action=view id=$newsitem->internal_name printerfriendly=1 router=index.php}" title="In" onclick="" rel="nofollow"><img src="{$smarty.const.THEME_RELATIVE}images/printBut.png" alt="In"  /></a>	</span>
				<span>
			</div>
		</div>

		<div class="article_summary">
			{if $newsitem->image != ''}
			<img class="caption" src="{$smarty.const.BASE_URL}/phpThumb.php?src={$newsitem->image}&w=120&h=120" border="1" align="left" style="padding: 1px; margin-right: 6px;" />
			{/if}
			{*
			Oct 14, 2010 - immanuel192 change this line to support first part of news
			<div><img src="{$smarty.const.THEME_RELATIVE}images/quote.gif" border=0>{$newsitem->body|summarize:"html":"para"}</div>*}
			{if $newsitem->summary != ""}
				<div><img src="{$smarty.const.THEME_RELATIVE}images/quote.gif" border=0>{$newsitem->summary}</div>
			{else}
				<div><img src="{$smarty.const.THEME_RELATIVE}images/quote.gif" border=0>{$newsitem->body|summarize:"html":"para"}</div>
			{/if}
			<div align=right><img src="{$smarty.const.THEME_RELATIVE}images/bullet-r.gif" border=0><a id="news_more_{$newsitem->id}" href="{if $newsitem->isRss}{$newsitem->rss_link}{else}{link action=view id=$newsitem->internal_name}{/if}" {if $newsitem->isRss}{$newsitem->rss_link}{else}{link action=view id=$newsitem->internal_name }{/if}>{$_TR.read_more}</a>&nbsp;&nbsp;&nbsp;</div>
		</div>
		{*{if $smarty.foreach.object.first  && $smarty.foreach.object.last !=1 }*}
		<span class="article_separator">&nbsp;</span>
	</div>
	{/foreach}
	{permissions level=$smarty.const.UILEVEL_NORMAL}
	{if $morenews == 1 || $permissions.add_item == true || ($in_approval > 0 && $canview_approval_link == 1) || $permissions.view_unpublished == 1}
	<div class="moduleactions">
		{*
		{if $morenews == 1}
		<a class="viewmorenews" href="{link action=view_all_news}">{$_TR.view_all}</a>{br}
		{/if}
		*}
		{permissions level=$smarty.const.UILEVEL_NORMAL}
		{if $permissions.add_item == true}
		<a class="addnews" href="{link action=edit}">{$_TR.create_news}</a>{br}
		{/if}
		{if $in_approval > 0 && $canview_approval_link == 1}
		<a class="approvenews" href="{link module=workflow datatype=newsitem m=newsmodule s=$__loc->src action=summary}">{$_TR.view_approval}</a>{br}
		{/if}
		{if $permissions.view_unpublished == 1 }
		<a class="expirednews" href="{link action=view_expired}">{$_TR.view_expired}</a>{br}
		{/if}
		{/permissions}
	</div>
	{/if}
	{/permissions}
	<div align=center>{paging current_page=$page pages=$pages action=view_page module=newsmodule page_length=4 src=$__loc->src}</div>
</div>

